package org.learn.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.learn.entity.User;
import org.learn.entity.UserList;

import java.util.List;

@Mapper
public interface UserMapper {
    List<UserList> findAll();

    Integer insert(@Param("id") Integer id,@Param("name") String name);

    Integer delete(@Param("id") Integer id);

    Integer put(@Param("id")Integer id,@Param("name") String name);

    User login(@Param("username")String username, @Param("password")String password);
}
